fixed command handling
fixed reload and added javadoc for permissionmaanger.java