Syntax update

I updated a few things to work with the latest version of elm, as it wouldn't compile for me otherwise.  To summarize:
  * replaced `mod` with %
  * got rid of .
  * removed an unnecessary case statement