Fixed some bugs (bad javascript control of parameters - type conversion) + added some basic server clasess