Added stderr, fixed formatting and support DSS and RSA