Add support for the copecs 13 and 14 for scala implementation

These changes will fix bug #4