Wrote README.md and changed switch in logic.php slightly