Cleaned and commented backend files