Add export and import functions

1. Add export function to write cone to json
2. Add import function to load json file and form cone structure
3. Add cone clear data routine
4. fix typo in coneCreate (create name field)