Minor corrections and improvements.
Added reference manual.