moved documentclass back to preamble; fixed defaults