Add support for object declarations
Remove some warnings