array-list bug fixed and error codes updated