updated allowed rules, formated classes to java convention