DynamicBufferadd.java modified for comments