First commit
Add class machine and test
Add exceptions
Add helpers
modified index.php