Fixed bugs in compiler, fixed bugs in preview, updated preview