Code cleanup and installation docs