Initial commit for broadcasting experiment
Added slicing. Fixed bug in broadcasting and neatened up code.
removed unneeded parenthesis