fixed io, license and function names