Citation ruby program for eventually usage as a rails plugins