Removed anything unnecessary (will be added back once the basic system is back up and running).
Rewrote almost the entire thing. Everything is fully documented.