added note model, fixed references