Add  functions comments, clean and optimize a litle (computer inventory)