Homework 1, revision 2

- **add** checks for open files
- **add** *static* for char constants