formatting + whitespacing
refactored drawSample into an external file, seriously badly named, but I'll change it when I think of a better name