tidying library generator