Added minimal comments to public framework functions. Made minor variable name changes