actually pass pragma arguments
rename README
write our own readme
add create_doc convenience function: use cjson if available