Cleaned code

Added versions, documentation and removed GUI references to the code.