Simplifies directory structure.

Also, adds license min file, header and function header/footer.