making the project `compilable` and replacing some warning-causing segments of code