added extern keywords to function declarations and new prototypes to world