Merge pull request #12 from Changaco/master

Fix IORef implementation. Reinstate UseGHC flag. Minor cleanup.
Minor cleanup.