added i/o and string functionality

Implemented whole line input. Added 'rtrim' manipulation function. Added
convenient empty string buffer creation.