fixed recursion problems (to be properly cleaned)
fixed typo in comments
removed useless comments
removed useless comments
added
extended
cleanup
added 'control' channel name and minor typos fixed
logging initialization moved here
logging initialization moved to log module
new functions added
minor changes