Add log model (logging and error handling), rewrite parse_sms with log model