Finished wordFields function to parse bit data and return command string