Glad you got it sorted. I've heard of people using solder/super glue to prevent cable ends fraying after installation, definitely more ghetto, but you can get 100 ferrules on ebay, 1p each. Good to have in if you plan to maintain your own bike(s).
http://www.ebay.co.uk/itm/100-X-Bike-Bi ... SwQPlV-RzK