Syntax cleanup

cleaning up syntax mistakes, and adding access modifiers to methods