Added factorial and changed interpolation docs
Made the code jshint-friendly
Merge pull request #940 from alvinsight/dev

Added factorial and updated to pass jshint :)