Button util

Minor changes, comments and button collisioning util function.