restructured code to be maven standard.