Adding missing documentation for some methods, fixing typos and removing unnecessary blank spaces/lines. Related to #6 and #20.