add documentation file, clean up test, makefile and rename tests