fix indentation
remove obsolete code
overhaul permissions, add JavaDoc comments
overhaul GenericsLib permissions, add JavaDoc comments