update the order of methods

Current code is so messy. So I decided the order of methods. They will appear
Constructor
PreConstruct
public methods
private methods
getter & setter
cleaning the codes

The order of methods are
public
protected
private
getter & setter
Merge pull request #7 from javadera/cleanCode

Clean code