add removeChildren method to Layer
change bufferData to bufferDataTyped