Exceptions added
input read fixed