Small Corrections

Padding added, fixed erroneous code