Rearranging code and removing unnecessary code

1. Moved the scanModel::isDoneScanning method up so it is closer to the related scanModel::scan method.
2. Removed the __cdecl function specifier as it is redundant of the default function calling convention.
3. Changed the serial port open call to open the serial connection in overlapped mode for asynchronous non-blocking serial I/O.