Added costs
Added span
Created formula related functions
Merge remote-tracking branch 'origin/master'