made functions in runtime
Code commented and man file added