Changed Stack to Deque (double-ended queue) and changed deque data type to void * to support any type. Moved main declarations to header file. Finally: Added file opening and played with automata programming.