Final version of the second interation.
added exception package and main class
removed unused imports
Merge pull request #6 from budacl/master

Implementation of the second iteration by budacl