refactored code, implemented console application
Merge remote-tracking branch 'origin/master'

Conflicts:
	README.md