Adding NSRails

Added NSRails, implemented error call