[UPDATE] use function declarations. Updated constructor documentation. Created panels superclass.