added: license header; simple logging