make various variables accessible, make autodetection of filename work
make various variables accessible, make autodetection of filename work

rkachowski/chingu,ippa/chingu,ndrluis/chingu,Spooner/chingu