Fixed IndexError and used glob module

Now can open files like `students/*.cpp`.
Fixed #74.