code cleanup
code cleanup
docs cleanup and get rid of some warnings