Add Markov Data Checker

- Add valid_input to markov_chain.py to test if data in markov_init.txt
is valid
- Reformat markov_chain.py to allow importing the Markov chain into
other files by calling markov()