fixed top-level namespace issues

Refer to issue #9
add conversion method

Gives users the ability to convert existing json files