added licence header to mod.rs and other review comments