Remove unused syntax

Removes semicolons, dir argument and id properties
Merge pull request #1 from rbirkby/unusedcode

Remove unused syntax