removed rails stuff. broke algorithm.
fix return value. update readme