added B functionality
updated comments
updated heading comments