refacored code and insert javadoc.
Todos: duplicate candidates on a proportional list throws jpa exception, login filter doesnt work (needs injection into filter?)

 Please enter the commit message for your changes. Lines starting