Wrote stuff and added references