Survey preview; finish library; fix bugs