added getline to header, prettied up test