Fix error in append method

Also moves the initial chunck size to a #define