fixxed up naming of rawname... and added some informational print statements...