Static getMaxElement method added; Fixed some generic 'issues'