readline functionality works, now need to add more functions