Added class reference documentation
Fixed some compiler errors