Starting major refactoring
Major refactoring and re-implementation
Refactoring and SHM motif extraction