Startup fixed /Logging added / Minor fixes