fixing code issues + updating README