Clarifying a lot of the documentation and making the code more readable