hw.capemanager code changed for better debugging and module.exports added.