Moon Factory

This branch turned into a complete code overhaul that includes several new features and lots of bug fixes.