Add generalfunctions file. Start implementing user system.