Fixed all errors. Source code is now compilable.