fixed some little things and utilized settings file.