Source code not properly documented yet and barely any testing but this is the code as running on the server at the moment.