Fixed a bug in setParameter

...also added a debugger function print(parameter)