change scala object extends App, remove main mothed
format code
Merge pull request #3 from BosonW/master

change scala object extends App, remove main mothed