Adding invalid input tests
Refactoring parse method

This should cover issue #1, adding multiplication and division to
support systems like All Flesh Must Be Eaten.