fixes: Removes anti patterns and adds a permissive license

Various miscellaneous and esthetics changes to remove anti patterns from the
code. At this point either a permissive license was added.