Initial pass over UAI reader class

I am trying to implement reader class for UAI file format.
PS:To test the code, one would have to make changes to __init__.py  file, but as they should not form part of PR I have left them out.
Please provide feedback about parsing the CPD