Minor bug fix and added license statements