removed extra writeln]
Added support for inlining css