Added functionality to the width, height, perimiter. Also documented some functions