Added license, precomipled binary, error checking for bad files, made motion detection a bit better