If max cores == -1, its always less than run cores…no need to use an OR.
Updated proc assign/unassign to include layer.  Fixes an issue where a proc moving between layers was not updating the dsp counts.
whitespace/imports cleanups