changing some documentation
fixing compiler warnings