Remove rdoc generated files
Clean up formatting and make helper methods private