fixed some docs and code convention issues