Fixes

removing trailing white spaces which may have happened with copy/paste
TODO:  Function in idle spawn could do with being spread across several
lines!