changed order of functions for readability
amended readme