cleanup + documentation