Updated documentation.
Fixed wrong return value.
Removed poll from readChar at cost of SIGALRM.
Updated prompt setting to a single method.
Few small corrections.
Fixed error handling.