working readme and finalizing some code