Samir - thats good, you have found the cause of the behavior. I have seen too much of pampering too spoils dog, since most of the time we need to be firm with pets and if we pamper a lot, emotions get carried away. This is the same rule as we apply to human beings. I would suggest you or who ever is considered as Alpha in the pack, be "Firm" and consistent.
Coming to be barking behavior, you can over come this - may be you would like to try this a bit.
If your GSD is barking a lot, you might want to put a leash around him and take him away from his usual spot, start ignoring him and do not pay attention.
If you do this repeatedly, your GDS would come to know what you do not like and would not do it again. Again the key is consistency and patience. Also giving time while teaching these things are important.