Added bibliography, rewrote some things