Added serial example and small fixes