Included add_reference to the main parser and fixed problem with adding references to KAF files