Refactoring, using emacs auto-indent,  delete-trailing-whitespace, 
removing useless funcions inherited from svn implemetation