Added main jar support.
Merge pull request #3 from hekonsek/main-jar-support

Added main jar support.