added debug option; improved readme