Added noise functionality, fixed measure.py and interfaces.