removed redundant folder, converted the smcSpeed commands to a function