Version 5

Project compiles, still debugging and need to add comments and removed
code which is no superfluous