New error messages

Added informative error messages when filename is passed as stan code or invalid index is passed to chains.ess