Add references
Various fixes
Update Firedrake code samples