added quit message
added current procedure message
fixed logging, uses associative array
cleaned up globals using associative array