added some comments and serial debug output