ESSAYS ON IMPERFECT FINANCIAL MARKETS