update init method

Simpler i/o with only kwargs now. 'doc' has file/string with content; 'url' has URL of content.