skeleton for validate and clean methods; added custom ParsingError exception