Cleaned up the program a bit, there is still some optimizing that can be done but this is probably as far as I'm going witht his code
Merge branch 'master' of https://github.com/RonaldZ/Examples