add some documentation
cleanup build
move license to separate file