Fixed same bugs as yesterday... :(
added std.
added limiting the number of results.