resolved all compiler warnings
don't use SEXPs, don't preallocate
redundant line