make code haxe 3 compatible
adding haxelib.xml
src/ and small fix