Added pipe-right operator $ (similar to the one found in Haskell). Cleaned up code.