added some fields to FromJSON methods
added getter methode for code in order to print it out