added Apache 2.0 license, as agreed with Joe Armstrong