Fixed multiple pads of same name
Fixed potential bugs and formating issue
Added uppercase