added GPL to repository
ignore vim swap files
raspberry pi needs -lrt for clock_gettime
cleanup and better error handling for /sys operations
added EDGE_SWITCH support
added support for EDGE_SWITCH mode
updated README to reflect recent code changes