Done, with room for improvement. Function for whitespace needed, file generation needs overhaul (add header and footer)