restructure to lib and refactor template
remove tests
update package version number