JavaDoc added
Finalized some Objects and made getElementMap method private