fixed the code class in bbc_script block
fixed a lot of minor bugs in the code
added missing css styles