Appended license copy to the documentation.
Fixed errors in the documentation and comments.