Removed the readline dependency, and replaced its functionality with scanf