added utility class for dealing with ByteBuffers
addressing compiler warnings
addressing compiler warnings
addressing compile issue
removing obsolete code
updated method to return an iteration of results