added Record(vector<string>)
fixed reference error and exceptions