added creation of output file; parsing of instance declarations was finished