format code and add sections for future use