added moment calculations and worked on fsp example