Code cleanup and commeting of the TypeProvider