implemented messages packages based on interfaces. Also made progress implementing server handling to clients