Added README and segregated code functionality