Added id field

Modified by SKuipers > added an id to options, so the class can be used in multiple locations & still cache each one. Also changed the fopen() from w to w+ so new files are created if not available.