Added external scalar mult fxn, fixed external fxns, added test cases