introduce require-main

https://github.com/shinnn/require-main
remove trailing white spaces