Moved functions to functions.cs
Merge pull request #2 from Raptornet/matt

Moved functions to functions.cs