Add license text; add library extension test and example in README