got rid of more warnings, added sbo's socket switch impl, added comments, javadoc, todo