Added informative error messages when filename is passed as stan code or invalid index is passed to chains.ess
Fixed numpy type error by converting n_kept to int in sampling