Added rudimentary text ref. functionality. Started working on referencing of compound variables. Revamping referencing system