changed pylint allow variables
fixed lint errors and added documentation