Code cleanup
Code cleanup, some docs and few new functions