Added some documentation
Cosmetic changes