Implement objects
Fix syntax and style errors