Added two new functions
Update mainfunc.js
Merge pull request #2 from C1D/master

Added two new functions.