cleaned up code, removed express dependencies and comments