add license
move script to lib folder
add gem spec