added license headers and renamed some member variables
square wave now functional