terrain collisions implemented
Added very simple documentation to code