added verbosity to DEBUG mode and more parsing code