Implemented basics for exceptions handling ( #17 )