Added license. Minor bug fixing.