Added reference types

Changed parser to handle ambiguities by only matching * and && on line.