Updated readme with more documentation. Added license to the source files.