Added bbcode parser. Minor bugfixes.