Files structure changed, code partially documented.

All headers and source moved to src folder.
Sources formatted and license blocks inserted.
LICENSE file added.