revamped doc for data, added cfg(method)