haxelib preparation, bugfixes and example