Moved some functions to HelperFunction class.

Also added getting the path for Windows. No Linux yet. #soon