added and modified validate_buffer and added parts to DESIGN DOC