Simplify file structure, add license, fixes #1