cleanup of file and directory creation
fix creation of log dir and files
more robust kepler, plus tests