added basic functionality

todo:
* refactor "logic" to a separated function
* add argument to configure output
* give pattern to process multiple files
* draw graphs