Version 1.2.0, supporting JSON imports properly, some refactoring.