Renamed variables and introduced more functions for unit testing examples
Moved tmp into update_stream_function
Removed use of ConfigParser