Added more API functions

And moved the detectModem() function to API