Master functions are now static

Fixed: segmentation fault
Changed: Mutex & functions are now static
Changed: Communicator no longer creates a new object for each operation