adding Doc
adding debug options