Add Main class, logging