Remove errors. Add a little documentation