Merge pull request #1 from sidraval/master

Initial commit
Basic rules set up.
Update function not returning the right number of dimensions yet.
Tweak readme.
Update function working. Separates business logic functions into new file.