added docs, lib