Added error handling for console input

Signed-off-by: Bill Vangos <bvangos@bu.edu>