Main source file added, author and licensing details included.