Fixes a silent fail when attempting to add a slave.

Fixes #42 
Also extraneous whitespace stripped from file.