added license info. added content-type header for json requests