add Spock for unit tests (#3)
Refactoring to add more flexibility in tack configuration
Examples added (issue #2)