fixed errors
Merge pull request #16 from thebrianzeng/master

fixed errors so that it runs