major changes: implementing near and far parameter set

bugfixing serial communication to arduino