Fixed #7, added the option debug_mode