Adjusted for kitkat's no sdcard write access
Cleaning up
Refacting & haxelint'ing (https://github.com/mcheshkov/haxelint)