added readme file, fix small bugs, updated documentation