Added content to README and comments for logic.php