ADD LRANGE and LTRIM command,, and some refactoring