Fix bugs and correct pad initiallization
removed unused port