Modularized functionality, added MicroEvent library for event triggering. Overall a good general cleaning.