changed placement of parameter check to sanity function, incremented version number to 1.01