FB libs rewritten, bug fixes, style changed