Big update! Now supports the Mahgeetah server. Most of the code has been refactored so as not to be redundant.