cleaned up errors & added sample config