adding docs and formatting code