Adding 'return seconds;' in background.cpp
Adding comments
reformat
merge Neil's comments