Added new functions for more complex trial generation
Improved testing functionality
Refactored the documentation layout