Adding License.
Fix small bugs.