Added getchar and gets

Fixed getchar and gets