Updated comments and style.
Made an Obstacle() constructor to make instantiating obstacles easier.