fix module metadata

Add metadata.json.
Add copyright / license boilerplate to all files.
Reformat documentation.
Update version to 0.1.1.