littered the code with const
fixed some reference returns and resolved coding style issues