adding in better clearing
updating docs