resolved lint errors and created better error documentation