adding settings class to lib
fixing varible naming