Split code into several files
Rudimentary imageboard downloading
Reverted buffer fill to being based on count