Deleted the read.line function and added a Scanner instead.

Addad a way too catch wrong insertion