Add Apache license; remove deprecated API methods