Updated documentation and options, minor refactoring.

- Added configurable JVM options.
- Splitted task into small methods.
- Created more constants.