When writing a program, decide if you want others to see the code. If you want them to see and understand it, then put different functions in different chunks and sub functions under the function to which they belong, but add a space before each sub function line. Also it helps to remove commented lines of code once you don't need it. That will save space and make it look better.