Topics in deregulated electricity markets