refactor to return object instead of function
rename this.warningTimeout to this.timeout
documentation
add css to tests