switched to UNIX EOL
added parsing of escaped characters
added error number to error description message