Fixed functions to comply with POSIX
Updated indents
Removed redundant check for number of archives passed
Fixed signal trap setting