Transfer operator code and discussion