added license and renamed namespace for sanity reasons
fixed typos and some permission issues on Windows