Removing warnings and sizing the array
added some tests for dwgBuffer