V 0.2 Added JSON export and more arguments