added feature csv import. cleaned up memory pointing.