Introduced dataset structure to hold data and labels. Cleaned up the cod...

...e. Reformatted comments to comply with godoc. Migrated tests to using convey.