improved documentation.
hooked up debug option to cli