Added function comments and one test function.
Merge remote-tracking branch 'origin/master'

Conflicts:
	index.js