Refactoring and CLI implementation.

* Moved clicks to separate package.
* Renamed lines to patterns.
* Converted back to maven project.
+ Implemented CLI