created class for reading setup

fixed some pep8 errors