Removed all relative imports; fixed all logging statements to be lazy