reformatted all code to coding style guide close #21