Create Magnet class to refactor server
Delete old code
Merge branch 'createMagnetClass' into develop