added missing comma, ran roxygenise
added textile output file format
added pat_textile function
fixed hooks; added output file format options