added debugging output to main_status_update()
Fixed early "running" status; fixed "implicit declaration" warning