added references, made small changes