added some stuff.
added stuff
Added documentation and made minor corrections.