Correct type paths
Fixed HxObject declaration
Smarter imports
Added full tests