Fst cleaned, better confidence measures and minimal documentation

Refactored the fst code to much cleaner package. Minimal documentation in comments (needs improvement) as well as much more accurate confidence measurements.