Thank you Stefan for the response. I'll try to make the suggested changes and let you know.
I am very new to LaTeX and I have very very minimal knowledge of its functionality. Will learn from now.
I have attached the .tex and .sty file. The problem that I am facing is that I am not have the top and bottom margins consistent across all the pages in the generated pdf. I want the margin length to be 1 in.
I am not able to get the correct margin settings for my pdf. Each page of the generated pdf is showing up a different margin style i.e. the margins are not consistent across all the pages. Please help me in this regard.