first cehckin of prototyped functions
Added many comments and usage statement
More Coments added.