Corrected some small bugs regarding the generation of both .xhtml and .stb files