output to file
cleanup
add logging
improved the look of output images