Essays in Accounting Regulation and Earnings Management