Added in function headers, uncommented the mangle code
Added testing scripts