better logging
added Apache 2.0 license - general updates