Added IRC capabilities. Cleanup. Use getopts.