Identified bug location
Explained PAD_SIZE and how to build