Final thesis submitted to ETD.