Add return value type declaration to all main functions