format code and add help