better methods for adding comments
fixed compile warnings