replaced 'then' method with 'andThen' for GitHub issue #13
added andThen as alternative replacement for 'then' in scala library for GitHub issue #13