added options page, fixed main script, added more files to pages definition