Added Javadoc for BerDecoder methods.
Added checks to ensure index and limit within buffer bounds.