merge redundant functions, add MANIFEST.in