Refactoring of coreUsers.php, removed old mysql dependency
Added documentation to coreUsers.php