fx a few typos
remove debug output
refactoring , typo fixing