enhanced tests
Fixed a bug for perms reading
Refactored
Compile in debug mode with Ant