refatored noise filtering and SM creation

-also introduced options for the SM generation
-improved metamodel