restructured code definition creation and the default bbcode setup