added basic functions, created gui namespace