cleared code.
Some fixes and clarity.