Added Apache 2.0 license, fixes issue #3.