STY: Add better logging and readconfig