Divided classes into separate files and made basic json serialization.