Aesthetic changes and bug fixes for progress bar
Fix LOTS of compiler warnings
Plug memory leak
Merge branch 'master' into travis