Removed main, converted to static library