added readme, updated code