Fixed many issues and moved to a callback-based system
More fixes both to module code and to tests