Added exceptions for the RandVar class, comments, conventions and PEP8
Comments, conventions, PEP8