Finished basic implementation of the exit mechanism and added basic examples.