Version 3 of the Alcyone code, refactored for future enhancements