updated some function calls and docs.