little clean up and documentation