added custom readline() function to API class