Second big commit. Changed design; added user log.