added logging, added test app