renamed filehandler to jsonfilehandler
added gate as new class.