Fixed bug in removePadding(). Added comments. Done.