added readme

Added a readme file and fixed minor bugs