Fixed some documentation. Renamed Some pattern matching functions.