New function for opening files or throwing debug output
Capitalisation fix in licence
Fixed bug affecting CPUs with multiple cores