removed main and fixed some capitalization issues