added more tests & documentation to the BBCode component