reworked logger for linking. restructured cmake files to accomodate it