implement ec sign and verify; add newline to end of each file