added example and cleaned stuff up