added some functions

requires cpp file which i dont know how to upload
Merge pull request #1 from Shad000w/patch-1

added some functions