Re-organised reference classes, added initial gui for data manager