Added default settings and custom error/success classes