Format code, update docs