Which Byzantine leader improved the law code and expanded territory?