added header comments
added utils and its test