Added readme, added logic