tried to add unit tests. Was not very successful. Application sucks balls.