changed pylint variable regular expression
fixed lint errors and added documentation