Fix bug with one argument in command line.
Added main class to the the built jar.