Added documentation as well as miscellaneous tweaks