Documentation for new features

Added example (and docs) for the stuff in pull requests #174 #175 #176 #177 #178