added readme, refactored a little
added readme, refactored a little