Simplified many funcitons, including removing JSON
requirement. Expanded documentation and updated examples.