Completed the remaining tasks.
Modified the name of error file to GS_error because error is a built-in identifier