Move options to main
Offload more hardcoded options to OptionsParser
Remove unncessary shebang from lib file