Minor switch case statement fix
Fixing constructor bug and improving getName method